package com.whfc.fmam.entity.qo;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description
 * @author sun_guodong
 * @date 2019-11-20
 */
@Data
public class MatTypeEditQO implements Serializable {
    @NotNull
    private Long id;
    @NotEmpty
    @Length(max = 4)
    private String code;
    @NotEmpty
    private String fullCode;
    @NotEmpty
    private String name;
    @NotNull
    private Integer weighFlag;
    private Integer diffType;
    private Double plusDiff;
    private Double minusDiff;

    /**
     * 标识偏差是否改变 0-否 1-是
     */
    @NotNull
    private Integer changeFlag;

    @NotNull
    private Integer deptId;
}
